﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Media.Imaging;
using Puddy.Utils;

namespace Puddy.UserControls
{
    public partial class us_SearchResultItem : UserControl
    {
         
        public us_SearchResultItem()
        {
            InitializeComponent();
        }

        public int TypeDataFrom;

        public void setGoogleTyle()
        {
            TypeDataFrom = Constants.GOOGLE_DATA;
            img_icon.Source = new BitmapImage(new Uri(@"/Assets/google_icon.png", UriKind.Relative));
        }

        public void setFoursquareTyle()
        {
            TypeDataFrom = Constants.FOURSQUARE_DATA;
            img_icon.Source = new BitmapImage(new Uri(@"/Assets/foursquare_icon.png", UriKind.Relative));
        }

        public void setAddress(String address)
        {
            tbl_address.Text = address;
        }
    }
}
